package com.odianyun.hello.service.impl;

import com.odianyun.db.query.PageVO;
import com.odianyun.hello.mapper.SoItemMapper;
import com.odianyun.hello.service.SoItemService;
import com.odianyun.hello.model.PO.SoItemPO;
import com.odianyun.hello.model.VO.SoItemVO;
import com.odianyun.project.base.IEntity;
import com.odianyun.project.query.PageQueryArgs;
import com.odianyun.project.query.QueryArgs;
import com.odianyun.project.support.base.service.OdyEntityService;
import java.util.*;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SoItemServiceImpl extends OdyEntityService<SoItemPO, SoItemVO, PageQueryArgs, QueryArgs, SoItemMapper> implements SoItemService {
    @Resource
    private SoItemMapper mapper;

    @Override
    protected SoItemMapper getMapper() {
        return mapper;
    }

    @Override
	protected void afterListPage(PageVO<? extends IEntity> pageVO) {
	    for (IEntity entity : pageVO.getList()) {
	        SoItemVO vo = (SoItemVO) entity;
            vo.setOrderCode("orderCode");
	    }
	}



}
